from urllib import parse

data = {"name":"张三","age":18,"greet":"hello"}
qs = parse.urlencode(data)
print(qs)
print(parse.parse_qs(qs))